//
//  GXGradientView.h
//


/**
 功能说明：
    - 左右滑动 gestureView 长条内产生渐变水印。
    - 可以用于提示用户已经滑动（滚动）到边缘了。
 */

#import <UIKit/UIKit.h>

typedef enum {
    GradientDirectionLeft = 0,
    GradientDirectionRight,
} GradientDirection;

@interface GXGradientView : UIView



//+ (instancetype)gradientViewWithGradientDirection:(GradientDirection)gradientDirection;

@property (nonatomic, strong) UIColor *gradientColor;

///GradientDirection
@property(nonatomic, assign) GradientDirection gradientDirection;

@property(nonatomic, assign) NSTimeInterval gradientTimeInterval;

@property(nonatomic, assign) CGFloat scale;



- (void)prepareGradientAnimation;
- (void)startGradientAnimation;

@end
